package net.xdclass.feign;

import net.xdclass.request.NewUserCouponRequest;
import net.xdclass.util.JsonData;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Classname CouponFeignService
 * @Description TODO
 * @Date 2022/5/12 15:06
 * @Created by sunhao
 */
@FeignClient(value = "xdclass-coupon-service")
public interface CouponFeignService {

  /**
   * 新用户注册发放优惠券
   * @param newUserCouponRequest
   * @return
   */
  @PostMapping(value = "/api/coupon/v1/new_user_coupon")
  JsonData newUserCoupon(@RequestBody NewUserCouponRequest newUserCouponRequest);

}
